<?php echo form_open_multipart($submit_uri);?>
<div class="page_header">
    <h1 class="fleft"><?php if (isset($header)) echo $header; ?></h1>
    <small class="fleft">"Thêm hồ sơ"</small>
    <span class="fright"><a class="button back" href="/dashboard/customers/detail/<?php echo $customer_id;?>" title="Quay lại trang danh sách khách hàng"><em>&nbsp;</em>Quay lại trang danh sách khách hàng</a></span>
    <br class="clear"/>
</div>

<div class="form_content">
<?php $this->load->view('powercms/message'); ?>
    <table>

        <tr>
            <td class="title">Tiêu đề : (<span>*</span>)</td>
        </tr>
        <tr>
            <td><?php echo form_input(array('name' => 'title', 'size' => '50', 'maxlength' => '256', 'style' => 'width:560px;', 'value' => $title)); ?></td>
        </tr>

        <tr>
            <td class="title">Hình minh họa</td>
        </tr>
        <tr>
            <td><input name="userfile" type="file" /></td>
        </tr>
        <?php if(isset($thumbnail) && $thumbnail != '' && $thumbnail != NULL):?>
            <tr>
                <td><img width="200" height="150" src="/images/files/<?php echo $thumbnail;?>"></td>
            </tr>
        <?php endif;?>

        <tr><td class="title" style="vertical-align: top">Nội dung: (<span>*</span>)</td></tr>
        <tr>
            <td>
                <?php echo form_textarea(array('id' => 'content', 'name' => 'content', 'value' => ($content != '') ? $content : set_value('content'), 'class' => 'wysiwyg')); ?>
            </td>
        </tr>
        <tr><td class="title">Ngày khám: (<span>*</span>)</td></tr>
        <tr>
            <td>
                <?php echo form_input(array('id' => 'news_created_date', 'name' => 'registered_date', 'size' => '50', 'maxlength' => '10', 'value' => $registered_date)); ?>
                <span style="color:#999;">(định dạng: dd-mm-yyyy)</span>
            </td>
        </tr>
    <tr>
        <td style="padding-top: 5px;">
            <?php echo form_submit(array('name' => 'btnSubmit', 'value' => $button_name, 'class' => 'button')); ?>
        </td>
    </tr>
    </table>
    <div style="margin-top: 10px;"></div>
</div>

<?php echo form_close(); ?>
